Skip to content

London | 26-ITP-May | Bisrat Tesfay | Sprint 2 | Coursework - #1289

Open
B3-Bisrat wants to merge 4 commits into
CodeYourFuture:mainfrom
B3-Bisrat:coursework/sprint-2
Open

London | 26-ITP-May | Bisrat Tesfay | Sprint 2 | Coursework#1289
B3-Bisrat wants to merge 4 commits into
CodeYourFuture:mainfrom
B3-Bisrat:coursework/sprint-2

Conversation

@B3-Bisrat

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have done all the tasks.

Questions

@B3-Bisrat B3-Bisrat added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 24, 2026
@hey-hammad hey-hammad added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 28, 2026

@hey-hammad hey-hammad left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great effort overall, minor changes required.

Comment thread Sprint-2/debug/author.js Outdated
@@ -1,5 +1,5 @@
// Predict and explain first...

// I think we can not use for ... of loop for objects. Object is not iriterable.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@B3-Bisrat B3-Bisrat Jul 28, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment
We cannot use for...of directly on a plain object because objects are not iterable.
We can use for...of with Object.values(), Object.keys(), or Object.entries().
We can also use for...in directly.

@@ -1,3 +1,3 @@
function parseQueryString(queryString) {
const queryParams = {};
if (queryString.length === 0) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens If I pass null to the function?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out, I hadn't considered null as an input. I'll update the function to handle invalid inputs safely and add a test for that case.

@hey-hammad hey-hammad added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 28, 2026
@B3-Bisrat B3-Bisrat added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants